# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Contributor: Antoine Fontaine <antoine.fontaine@epfl.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-peewee
_pkgname=peewee
pkgver=3.13.3
pkgrel=1
pkgdesc="Small, expressive ORM"
url="https://github.com/coleifer/peewee"
arch="all"
license="MIT"
depends="python3"
makedepends="cython py3-setuptools python3-dev sqlite-dev"
checkdepends="py3-psycopg2"
source="py3-peewee-$pkgver.tar.gz::https://github.com/coleifer/peewee/archive/$pkgver.tar.gz"

builddir="$srcdir"/$_pkgname-$pkgver

build() {
	python3 setup.py build
}

check() {
	python3 runtests.py
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="e7df0b07092d96c9e4a4d5d4eb21b0bee14f133576c90cf518add5c59b1655d79677b29f5577a2d34d06c3f89b300f03da4529a2ad75c4ca9037244f66b15151  py3-peewee-3.13.3.tar.gz"
